package _1._0._0._127.ormrpc.services.WSWSSaleOrderFacade;

public class WSWSSaleOrderFacadeSrvProxyProxy implements WSWSSaleOrderFacadeSrvProxy {
    private String _endpoint = null;
    private WSWSSaleOrderFacadeSrvProxy wSWSSaleOrderFacadeSrvProxy = null;

    public WSWSSaleOrderFacadeSrvProxyProxy() {
        _initWSWSSaleOrderFacadeSrvProxyProxy();
    }

    public WSWSSaleOrderFacadeSrvProxyProxy(String endpoint) {
        _endpoint = endpoint;
        _initWSWSSaleOrderFacadeSrvProxyProxy();
    }

    private void _initWSWSSaleOrderFacadeSrvProxyProxy() {
        try {
            wSWSSaleOrderFacadeSrvProxy = (new WSWSSaleOrderFacadeSrvProxyServiceLocator()).getWSWSSaleOrderFacade();
            if (wSWSSaleOrderFacadeSrvProxy != null) {
                if (_endpoint != null)
                    ((javax.xml.rpc.Stub) wSWSSaleOrderFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
                else
                    _endpoint = (String) ((javax.xml.rpc.Stub) wSWSSaleOrderFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
            }

        } catch (javax.xml.rpc.ServiceException serviceException) {
        }
    }

    public String getEndpoint() {
        return _endpoint;
    }

    public void setEndpoint(String endpoint) {
        _endpoint = endpoint;
        if (wSWSSaleOrderFacadeSrvProxy != null)
            ((javax.xml.rpc.Stub) wSWSSaleOrderFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

    }

    public WSWSSaleOrderFacadeSrvProxy getWSWSSaleOrderFacadeSrvProxy() {
        if (wSWSSaleOrderFacadeSrvProxy == null)
            _initWSWSSaleOrderFacadeSrvProxyProxy();
        return wSWSSaleOrderFacadeSrvProxy;
    }

    public String[] importData(String xmlData) throws java.rmi.RemoteException, wssaleorderfacade.client.WSInvokeException {
        if (wSWSSaleOrderFacadeSrvProxy == null)
            _initWSWSSaleOrderFacadeSrvProxyProxy();
        return wSWSSaleOrderFacadeSrvProxy.importData(xmlData);
    }


}